package cn.iocoder.yudao.module.project.controller.admin.order.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 生产订单信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OrderRespVO {

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18406")
    @ExcelProperty("订单编号")
    private String id;

    @Schema(description = "订单日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单日期")
    private String dateStr;

    @Schema(description = "龙亿编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("龙亿编号")
    private String code;

    @Schema(description = "订单导入日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单导入日期")
    @JsonFormat(pattern=FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime orderDate;
    private String orderDateStr;

    @Schema(description = "订单总数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单总数量")
    private Long totalNum;

    @Schema(description = "到货点", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("到货点")
    private String arrivalPoint;

    @Schema(description = "出货方式", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("出货方式")
    private String deliveryMode;

    @Schema(description = "厂长", requiredMode = Schema.RequiredMode.REQUIRED)
    //@ExcelProperty("厂长")
    private String manager;

    @Schema(description = "开发业务", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    //@ExcelProperty("开发业务")
    private String businessName;

    @Schema(description = "业务", requiredMode = Schema.RequiredMode.REQUIRED)
    //@ExcelProperty("业务")
    private String operator;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "订单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private String status;

    @ExcelProperty("订单状态")
    private String statusName;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    //@ExcelProperty("创建时间")
    private LocalDateTime createTime;
    private String createTimeStr;

    @ExcelProperty("未完成数量")
    private Integer unfinishedNum;

    @Schema(description = "出货日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @ExcelProperty("出货日期")
    private LocalDateTime shippingDate;

    private String shippingDateStr;

    @Schema(description = "客户名称")
    @ExcelProperty("客户名称")
    private String customerName;

}